
package inf3791.calendarsystem.others.components.calendar;

import java.awt.Color;
import java.awt.Component;
import javax.swing.JLabel;
import javax.swing.JTable;
import javax.swing.SwingConstants;
import javax.swing.table.TableCellRenderer;

/**
 *
 * @author Jonas Weber
 */
class DayRenderer extends JLabel implements TableCellRenderer {

    @Override
    public Component getTableCellRendererComponent(JTable jtable, Object name, boolean isSel, boolean hasFox, int row, int col) {
        setText((String) name);
        setForeground(Color.BLACK);
        setFont(jtable.getFont());
        setHorizontalAlignment(SwingConstants.CENTER);
        return this;
    }

}
